package di

import Assistant
import AssistantImpl
import client.KtorClient
import dto.AppConfig
import org.koin.core.qualifier.named
import org.koin.dsl.module

val assistantModule = module {
    single<Assistant> {
        val appConfig: AppConfig = get()
        val ktorClient: KtorClient = get()

        AssistantImpl(
            logger = get(named("Network")),
            ktorClient = ktorClient.create(appConfig.assistantUrl)
        )
    }
}
